package com.zking.ssm.service;

import com.zking.ssm.model.File;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

/**
* @author Duan
* @description 针对表【t_file】的数据库操作Service
* @createDate 2021-11-25 15:31:20
*/
@Transactional
public interface FileService extends IService<File> {

    /**
     * 文件上传
     * @param file
     * @return
     */
    int insertSelective(File file);


    /**
     * 文件下载
     * @param fileId
     * @return
     */
    @Transactional(readOnly = true)
    File selectOneByFileId(@Param("fileId") String fileId);


}
